Interface UserManager
-
public interface UserManagerTheUserManagerallows to handle user management related features.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteUser(OrchestrationUser orchestrationUser)Deactivates a specified user.UserInformationgetUserInformation(OrchestrationUser orchestrationUser)Retrieves the information related to a specific user.java.util.List<OrchestrationUser>getUsers()Retrieves the list of activated users.booleanisUserActivated(OrchestrationUser orchestrationUser)Check whether the provided user identifier corresponds to an activated user.
-
-
-
Method Detail
-
isUserActivated
boolean isUserActivated(@NonNull OrchestrationUser orchestrationUser)Check whether the provided user identifier corresponds to an activated user.- Parameters:
orchestrationUser- the user to check- Returns:
- true if the user is activated
-
getUserInformation
@Nullable UserInformation getUserInformation(@NonNull OrchestrationUser orchestrationUser)
Retrieves the information related to a specific user.- Parameters:
orchestrationUser- the user- Returns:
- a
UserInformationobject or null if user is not activated
-
deleteUser
void deleteUser(@NonNull OrchestrationUser orchestrationUser)Deactivates a specified user.- Parameters:
orchestrationUser- the user to deactivate
-
getUsers
java.util.List<OrchestrationUser> getUsers()
Retrieves the list of activated users.- Returns:
- a list of
OrchestrationUser
-
-